<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
		<meta charset="utf-8" />
	<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="searchForm" class="form-search"
						action="question/guide_student_question_page_list.do" method="post">
						<input type="hidden" name="pageNumber" value="1" />
						<input type="hidden" name="ZGH" value="${ teacherInfo.ZGH}" />
						</form>
 <div id="tittle">
    	校内指导老师：<span>${teacherInfo.XM }</span>
    </div>
    <table class="tablelist tablelist_margin">
    	<thead>
    	<tr>
    	<th>学生姓名</th>
        <th>问题内容</th>
        <th >提问日期</th>
		<th>是否回复</th>
      </tr>
        </thead>
        <tbody>
              <c:forEach items="${guideStudentQuestionList}" var="question"  varStatus="status">
      <tr>
       <td>${question.studentName}</td>
        <td style="width: 50%;">${question.question}</td>
         <td>${question.sendTime}</td>
        <td><c:if test="${question.hasReply==1}">已回复</c:if>
        <c:if test="${question.hasReply==0}">未回复</c:if></td>
		</tr>
		</c:forEach>
        </tbody>
    </table>
     <div class="pagin">
    	<%@ include file="page.jsp"%>
    </div>
    <script src="js/jquery-1.7.2.js"></script>
     <script src="layer/layer.js"></script>
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	function GoToPage(toPage,totalPage) {
	    if(toPage<=0) return;
	    if(toPage>totalPage) return;
	    $("input[name='pageNumber']").val(toPage);
	    $("#searchForm").submit();
	};
	</script>
</body>
</html>
